package com.dapeng.cleardatabackend.model.dto.node;

import com.dapeng.cleardatabackend.common.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author dapeng
 * @description 获取节点请求
 * @date 2024/12/22 22:49
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(description = "获取节点请求")
public class NodeGetRequest extends PageRequest implements Serializable {

    private static final long serialVersionUID = 431319699180079952L;

    /**
     * 图谱id
     */
    @ApiModelProperty(value = "图谱id", required = true)
    @NotNull(message = "图谱id不能为空")
    private Long graphId;

    /**
     * 用户定义id
     */
    @ApiModelProperty(value = "用户定义id")
    private String nodeId;

    /**
     * 节点标签
     */
    @ApiModelProperty(value = "节点标签")
    private String label;

    /**
     * 节点文本
     */
    @ApiModelProperty(value = "节点文本")
    private String text;

}
